import snackserver.*

class BootStrap {

    def init = { servletContext ->
		
        if(Mode.count()==0){
            new Mode(name:'1').save()
            new Mode(name:'2').save()
            new Mode(name:'3').save()
            new Mode(name:'4').save()
			new Mode(name:'5').save()
			new Mode(name:'6').save()
			new Mode(name:'7').save()
			new Mode(name:'8').save()
			new Mode(name:'9').save()
			new Mode(name:'10').save()
			new Mode(name:'11').save()
			new Mode(name:'12').save()
			new Mode(name:'13').save()
			new Mode(name:'14').save()
			new Mode(name:'15').save()
			new Mode(name:'16').save()
        }
    }
    def destroy = {
    }
}
